If you are defining a new schema or DTD it is often helpful to create a few example XML documents as a starting point. XML Spy then allows you to generate a new schema from this document (or from a set of documents in the project window) as a first step.
If you are targeting one of the modern schema kinds (e.g. XSD or BizTalk), XML Spy can automatically detect datatypes (such as date, time, number, uri, etc.) being used in your XML documents and create the corresponding restrictions in the schema.
XML Spy will also optionally detect typical enumeration scenarios, where an element or attribute can only contain items from a predefined list of values.
This command normally operates on the frontmost main window, but you can also use the Generate DTD/Schema command on any file, folder, or group of files in the active project window.
|
|